const baseUrl = "https://nideshop2.bluej.cn/api/";
//获取首页列表数据
let index = baseUrl + "index/index";
//获取当前分类
let current = baseUrl + "catalog/current";
//获取商品列表
let goodsList = baseUrl + "goods/list";
//获取登录接口
let loginByWeixin = baseUrl + "auth/loginByWeixin";
//获取购物车数据
let cartData = baseUrl + "cart/index";
//更新购物车商品
let cartUpdate = baseUrl + "cart/update";
//获取商品详情
let goodsDetail = baseUrl + "goods/detail" ;
//添加商品到购物车
let cartAdd = baseUrl + "cart/add";
//选择或取消选择商品
let cartChecked = baseUrl + "cart/checked";
//删除购物车的商品
let cartDelete = baseUrl + "cart/delete";
//商品详情页的关联物品
let goodsRelated = baseUrl+ "goods/related";
//获取区域列表
let regionList = baseUrl + "region/list";
//保存收货地址
let addressSave = baseUrl + "address/save";
//获取收货地址列表
let addressList = baseUrl + "address/list";
//删除收货地址
let addressDel = baseUrl + "address/delete";
//收货地址详情
let addressDetail = baseUrl + "address/detail";
//下单前信息确认
let cartCheckout = baseUrl + "cart/checkout";
//提交订单
let orderSubmit = baseUrl + "order/submit";
//获取订单列表
let orderList = baseUrl + "order/list";
//取消订单
let orderCancel = baseUrl + "order/cancel";
export default {
  index,
  current,
  goodsList,
  loginByWeixin,
  cartData,
  cartUpdate,
  goodsDetail,
  cartAdd,
  cartChecked,
  cartDelete,
  goodsRelated,
  regionList,
  addressSave,
  addressList,
  addressDel,
  addressDetail,
  cartCheckout,
  orderSubmit,
  orderList,
  orderCancel
}